package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.dto.YddLinkPageQueryDTO;
import com.itheima.pojo.YddLink;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author TrainingL
 * @since 2023-05-13
 */
@Mapper
public interface YddLinkMapper extends BaseMapper<YddLink> {

    @Select("select * from youdianda.ydd_link where type = #{type} and default_data = 1")
    Page<YddLink> pageYddLink(YddLinkPageQueryDTO dto);
}
